package com.mzy.springboot.controller;

import com.mzy.springboot.bean.Furn;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class HelloController {

    @Value("${mzy.qmf}")
    private String couple;

    @Resource
    private Furn furn;

    @RequestMapping("/hello")
    public String hello() {
        System.out.println(couple);
        return "hello springboot";
    }

    @RequestMapping("/furn")
    public Furn furn() {
        return furn;
    }
}
